<?php

namespace App\Console;


use App\Console\Commands\ActivityCountdownCommand;
use App\Console\Commands\ArticleWeightCommand;
use App\Console\Commands\BirthdayCommand;
use App\Console\Commands\CircleArticleNoticeCommand;
use App\Console\Commands\CircleTop80Command;
use App\Console\Commands\PushActivityNoticeCommand;
use App\Console\Commands\RecCircleCommand;
use App\Console\Commands\SignInNoticeCommand;
use App\Console\Commands\UserBlackCommand;
use App\Console\Commands\UserWeightCommand;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        RecCircleCommand::class,
        ArticleWeightCommand::class,
        UserWeightCommand::class,
//        UserBlackCommand::class,
        CircleArticleNoticeCommand::class,
        SignInNoticeCommand::class,
        CircleTop80Command::class,
        BirthdayCommand::class,
        PushActivityNoticeCommand::class,
        ActivityCountdownCommand::class,
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('rec-circle')->dailyAt('00:05');
        $schedule->command('circle-top80')->dailyAt('05:00');
        $schedule->command('user-weight')->dailyAt('00:10');
//        $schedule->command('user-black')->dailyAt('04:00');
        $schedule->command('sign-in-notice')->dailyAt('20:30');
        $schedule->command('circle-article-notice')->dailyAt('19:30');
        $schedule->command('animal-birthday')->dailyAt('08:00');
        $schedule->command('activity-count-down')->dailyAt('08:30');
        $schedule->command('article-weight')->hourly();
//        $schedule->command('push-activity-notice')->everyMinute();
    }

    /**
     * Register the commands for the application.
     *
     * @return void
     */
    protected function commands()
    {
        $this->load(__DIR__.'/Commands');

        require base_path('routes/console.php');
    }
}
